
import requests
base_url = 'https://httpbin.dev/'
header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1'}
cookie = 'key1=value1;key2=value2'

jar_obj = requests.cookies.RequestsCookieJar()
for temp in cookie.split(';'):
    key, value = temp.split('=', 1)
    jar_obj.set(key, value)

response = requests.get(base_url, headers=header, cookies=jar_obj)

print(response.text)
